package string;

/**
 * @Author Klys
 * @Date 2023/4/4 0:04
 * @Description
 * @Version 1.0
 */

/**
 * 字符串转 int
 */
public class Demo01 {

    public static class TestClass {

        private final char a[];

        public TestClass(char[] a) {
            this.a = a;
        }
    }

    public class Inneer {

        private final char a[];

        public Inneer(char[] a) {
            this.a = a;
        }
    }

    public static void main(String[] args) {
        char[] a = new char['我'];
        //静态内部类的访问
        TestClass testClass = new TestClass(a);


        //非静态的内部类访问
        Demo01 demo01 = new Demo01();
        Demo01.Inneer inner = demo01.new Inneer(a);
    }

    public void fun() {
        char[] chars = new char['a'];
        TestClass testClass = new TestClass(chars);
        Demo01 demo01 = new Demo01();
        Demo01.Inneer inner = demo01.new Inneer(chars);
    }

}
